const enumModel = require('../models/enumModel');

class enumController {
  async getAllEnums(ctx) {
    try {
      const enums = await enumModel.getAllEnums(ctx.query);
      ctx.set('Cache-Control', 'no-cache')
      ctx.body = { code: 200, data: enums, message: '获取成功' };

    } catch (error) {
      ctx.body = { code: 500, message: '字典获取失败', error };
    }
  }

  async getMembersByCode(ctx) {
    //
  }
};

module.exports = new enumController();